/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.common.mapper;

import com.koron.workflow.baseConfig.bean.DepartmentBean;
import com.koron.workflow.common.bean.StaffBean;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SynchronizationSysInfoMapper {
    /**
     * 获取所有用户信息
     * @return
     */
    List<StaffBean> getAllStaff();

    /**
     * 批量更新用户信息
     * @param list
     * @return
     */
    Integer batchUpdateStaff(List<StaffBean> list);

    /**
     * 批量新增用户信息
     * @param list
     * @return
     */
    Integer batchInsertStaff(List<StaffBean> list);

    /**
     * 更新用户信息
     * @return
     */
    Integer updateStaff(StaffBean bean);


    /**
     * 获取所有组织信息
     * @return
     */
    List<DepartmentBean> getAllDept();

    /**
     * 批量更新组织信息
     * @param list
     * @return
     */
    Integer batchUpdateDept(List<DepartmentBean> list);

    /**
     * 更新组织信息
     * @return
     */
    Integer updateDept(DepartmentBean bean);

    /**
     * 批量新增组织信息
     * @param list
     * @return
     */
    Integer batchInsertDept(List<DepartmentBean> list);
}
